package org.sun.log_manager_study.modules.user.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.sun.log_manager_study.modules.user.entity.CompanyUser;
import org.sun.log_manager_study.modules.user.repository.CompanyUserRepository;

@RestController
@RequestMapping("/companyUser")
public class CompanyUserController {
    @Autowired
    private CompanyUserRepository companyUserRepository;

    @GetMapping("/findAll")
    public List<CompanyUser> findAll() {
        return companyUserRepository.findAll();
    }
}
